package com.mdd.front.controller.yangyangLeadingEnterprise.index;

import com.mdd.common.aop.NotLogin;
import com.mdd.common.entity.yangyangLeadingEnterprise.TAppStore;
import com.mdd.common.entity.yangyangLeadingEnterprise.common.JsonReturn;
import com.mdd.common.entity.yangyangLeadingEnterprise.param.AppStoreParam;
import com.mdd.front.service.yangyangLeadingEnterprise.ITAppStoreService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("api.index/store")
@Api(tags = "app首页---领企入驻/门店管理")
public class TAppStoreController {

    @Resource
    ITAppStoreService appStoreService;

    @NotLogin
    @PostMapping(value = "/selectList",produces = "application/json; charset=UTF-8")
    @ApiOperation(value="门店查询")
    @ResponseBody
    public String selectList(@RequestBody AppStoreParam param) {
        List<TAppStore> list = appStoreService.selectList(param);
        return JsonReturn.success().setListData(list).toJsonStr();
    }


}
